<?PHP

	class tpl_settings {
		
		public static function settings_form(){
			
			$compiled_form = '';
			foreach($GLOBALS['OUTPUT']->forms as $fdata){
				
				$compiled_form .= <<<EOV
<div class='table_header'>&nbsp;{$fdata[0]}</div>
<table style='width: 100%;' cellspacing='1' cellpadding='5'>
EOV
.
				$fdata[1]->get_fields() .
				<<<EOV
</table>
<br />
EOV;
			}

			return	tpl_globals::header() .
				<<<EOV
<div style='height: 1px;'></div>
<form action='./index.php?act=admin&page=settings&updatesettings=1{$GLOBALS['OUTPUT']->ses}' method='post'>
{$compiled_form}
</table>
<div class='box_container'>
	<div class='infobox_inside table_header_row' style='text-align: center'>
		<input type='submit' value='{$GLOBALS['LANG']->lang_formcommon->submit}' class='form_button_norm' onmouseout="this.className='form_button_norm'" onmouseover="this.className='form_button_over'">
	</div>
</div>
EOV
.
				tpl_globals::footer();
				
		}
		
	}

?>